home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / lisp / rlogin.elc < prev    next >
Emacs Compiled Lisp  |  1994-02-06  |  5.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 53 75 6e 20 | 46 65 62 20 20 36 20 31 | on Sun |Feb 6 1|
|00000040| 33 3a 30 35 3a 33 37 20 | 31 39 39 34 0a 3b 3b 3b |3:05:37 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 72 6c 6f 67 69 6e | 2e 65 6c 0a 3b 3b 3b 20 |p/rlogin|.el.;;; |
|00000080| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|00000090| 2e 32 32 2e 32 39 2e 0a | 3b 3b 3b 20 62 79 74 65 |.22.29..|;;; byte|
|000000a0| 63 6f 6d 70 20 76 65 72 | 73 69 6f 6e 20 46 53 46 |comp ver|sion FSF|
|000000b0| 20 32 2e 31 30 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 | 2.10.;;|; optimi|
|000000c0| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|000000d0| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|000000e0| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|000000f0| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000100| 6d 61 63 73 20 31 38 2e | 0a 0a 28 69 66 20 28 61 |macs 18.|..(if (a|
|00000110| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000120| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000130| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000140| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|00000150| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|00000160| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|00000170| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|00000180| 20 22 31 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "19")))|. (er|
|00000190| 72 6f 72 20 22 54 68 69 | 73 20 66 69 6c 65 20 77 |ror "Thi|s file w|
|000001a0| 61 73 20 63 6f 6d 70 69 | 6c 65 64 20 66 6f 72 20 |as compi|led for |
|000001b0| 45 6d 61 63 73 20 31 39 | 22 29 29 0a 0a 28 62 79 |Emacs 19|"))..(by|
|000001c0| 74 65 2d 63 6f 64 65 20 | 22 c0 c1 21 88 c0 c2 21 |te-code |"..!...!|
|000001d0| 87 22 20 5b 72 65 71 75 | 69 72 65 20 63 6f 6d 69 |." [requ|ire comi|
|000001e0| 6e 74 20 73 68 65 6c 6c | 5d 20 32 29 0a 28 64 65 |nt shell|] 2).(de|
|000001f0| 66 76 61 72 20 72 6c 6f | 67 69 6e 2d 70 72 6f 67 |fvar rlo|gin-prog|
|00000200| 72 61 6d 20 22 72 6c 6f | 67 69 6e 22 20 22 5c 0a |ram "rlo|gin" "\.|
|00000210| 2a 4e 61 6d 65 20 6f 66 | 20 70 72 6f 67 72 61 6d |*Name of| program|
|00000220| 20 74 6f 20 69 6e 76 6f | 6b 65 20 72 6c 6f 67 69 | to invo|ke rlogi|
|00000230| 6e 22 29 0a 28 64 65 66 | 76 61 72 20 72 6c 6f 67 |n").(def|var rlog|
|00000240| 69 6e 2d 65 78 70 6c 69 | 63 69 74 2d 61 72 67 73 |in-expli|cit-args|
|00000250| 20 6e 69 6c 20 22 5c 0a | 2a 4c 69 73 74 20 6f 66 | nil "\.|*List of|
|00000260| 20 61 72 67 75 6d 65 6e | 74 73 20 74 6f 20 70 61 | argumen|ts to pa|
|00000270| 73 73 20 74 6f 20 72 6c | 6f 67 69 6e 20 6f 6e 20 |ss to rl|ogin on |
|00000280| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00000290| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 72 6c 6f 67 |.").(def|var rlog|
|000002a0| 69 6e 2d 6d 6f 64 65 2d | 68 6f 6f 6b 20 6e 69 6c |in-mode-|hook nil|
|000002b0| 20 22 5c 0a 2a 48 6f 6f | 6b 73 20 74 6f 20 72 75 | "\.*Hoo|ks to ru|
|000002c0| 6e 20 61 66 74 65 72 20 | 73 65 74 74 69 6e 67 20 |n after |setting |
|000002d0| 63 75 72 72 65 6e 74 20 | 62 75 66 66 65 72 20 74 |current |buffer t|
|000002e0| 6f 20 72 6c 6f 67 69 6e | 2d 6d 6f 64 65 2e 22 29 |o rlogin|-mode.")|
|000002f0| 0a 28 64 65 66 76 61 72 | 20 72 6c 6f 67 69 6e 2d |.(defvar| rlogin-|
|00000300| 70 72 6f 63 65 73 73 2d | 63 6f 6e 6e 65 63 74 69 |process-|connecti|
|00000310| 6f 6e 2d 74 79 70 65 20 | 6e 69 6c 20 22 5c 0a 2a |on-type |nil "\.*|
|00000320| 49 66 20 6e 6f 6e 2d 60 | 6e 69 6c 27 2c 20 75 73 |If non-`|nil', us|
|00000330| 65 20 61 20 70 74 79 20 | 66 6f 72 20 74 68 65 20 |e a pty |for the |
|00000340| 6c 6f 63 61 6c 20 72 6c | 6f 67 69 6e 20 70 72 6f |local rl|ogin pro|
|00000350| 63 65 73 73 2e 20 20 0a | 49 66 20 60 6e 69 6c 27 |cess. .|If `nil'|
|00000360| 2c 20 75 73 65 20 61 20 | 70 69 70 65 20 28 69 66 |, use a |pipe (if|
|00000370| 20 70 69 70 65 73 20 61 | 72 65 20 73 75 70 70 6f | pipes a|re suppo|
|00000380| 72 74 65 64 20 6f 6e 20 | 74 68 65 20 6c 6f 63 61 |rted on |the loca|
|00000390| 6c 20 73 79 73 74 65 6d | 29 2e 20 20 0a 0a 47 65 |l system|). ..Ge|
|000003a0| 6e 65 72 61 6c 6c 79 20 | 69 74 20 69 73 20 62 65 |nerally |it is be|
|000003b0| 74 74 65 72 20 6e 6f 74 | 20 74 6f 20 77 61 73 74 |tter not| to wast|
|000003c0| 65 20 70 74 79 73 20 6f | 6e 20 73 79 73 74 65 6d |e ptys o|n system|
|000003d0| 73 20 77 68 69 63 68 20 | 68 61 76 65 20 61 20 73 |s which |have a s|
|000003e0| 74 61 74 69 63 0a 6e 75 | 6d 62 65 72 20 6f 66 20 |tatic.nu|mber of |
|000003f0| 74 68 65 6d 2e 20 20 4f | 6e 20 74 68 65 20 6f 74 |them. O|n the ot|
|00000400| 68 65 72 20 68 61 6e 64 | 2c 20 73 6f 6d 65 20 69 |her hand|, some i|
|00000410| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 73 20 6f |mplement|ations o|
|00000420| 66 20 60 72 6c 6f 67 69 | 6e 27 20 61 73 73 75 6d |f `rlogi|n' assum|
|00000430| 65 0a 61 20 70 74 79 20 | 69 73 20 62 65 69 6e 67 |e.a pty |is being|
|00000440| 20 75 73 65 64 2c 20 61 | 6e 64 20 65 72 72 6f 72 | used, a|nd error|
|00000450| 73 20 77 69 6c 6c 20 72 | 65 73 75 6c 74 20 66 72 |s will r|esult fr|
|00000460| 6f 6d 20 75 73 69 6e 67 | 20 61 20 70 69 70 65 20 |om using| a pipe |
|00000470| 69 6e 73 74 65 61 64 2e | 22 29 0a 28 64 65 66 76 |instead.|").(defv|
|00000480| 61 72 20 72 6c 6f 67 69 | 6e 2d 69 6e 69 74 69 61 |ar rlogi|n-initia|
|00000490| 6c 6c 79 2d 74 72 61 63 | 6b 2d 63 77 64 20 74 20 |lly-trac|k-cwd t |
|000004a0| 22 5c 0a 2a 49 66 20 6e | 6f 6e 2d 60 6e 69 6c 27 |"\.*If n|on-`nil'|
|000004b0| 2c 20 64 6f 20 72 65 6d | 6f 74 65 20 64 69 72 65 |, do rem|ote dire|
|000004c0| 63 74 6f 72 79 20 74 72 | 61 63 6b 69 6e 67 20 76 |ctory tr|acking v|
|000004d0| 69 61 20 61 6e 67 65 2d | 66 74 70 20 72 69 67 68 |ia ange-|ftp righ|
|000004e0| 74 20 61 77 61 79 2e 0a | 49 66 20 60 6e 69 6c 27 |t away..|If `nil'|
|000004f0| 2c 20 79 6f 75 20 63 61 | 6e 20 73 74 69 6c 6c 20 |, you ca|n still |
|00000500| 65 6e 61 62 6c 65 20 64 | 69 72 65 63 74 6f 72 79 |enable d|irectory|
|00000510| 20 74 72 61 63 6b 69 6e | 67 20 62 79 20 64 6f 69 | trackin|g by doi|
|00000520| 6e 67 20 0a 60 4d 2d 78 | 20 64 69 72 74 72 61 63 |ng .`M-x| dirtrac|
|00000530| 6b 2d 74 6f 67 67 6c 65 | 27 2e 22 29 0a 28 64 65 |k-toggle|'.").(de|
|00000540| 66 76 61 72 20 72 6c 6f | 67 69 6e 2d 70 61 73 73 |fvar rlo|gin-pass|
|00000550| 77 6f 72 64 2d 70 61 72 | 61 6e 6f 69 61 20 6e 69 |word-par|anoia ni|
|00000560| 6c 20 22 5c 0a 2a 49 66 | 20 6e 6f 6e 2d 60 6e 69 |l "\.*If| non-`ni|
|00000570| 6c 27 2c 20 71 75 65 72 | 79 20 75 73 65 72 20 66 |l', quer|y user f|
|00000580| 6f 72 20 61 20 70 61 73 | 73 77 6f 72 64 20 69 6e |or a pas|sword in|
|00000590| 20 74 68 65 20 6d 69 6e | 69 62 75 66 66 65 72 20 | the min|ibuffer |
|000005a0| 77 68 65 6e 20 61 20 50 | 61 73 73 77 6f 72 64 3a |when a P|assword:|
|000005b0| 20 70 72 6f 6d 70 74 20 | 61 70 70 65 61 72 73 2e | prompt |appears.|
|000005c0| 0a 49 74 27 73 20 61 6c | 73 6f 20 70 6f 73 73 69 |.It's al|so possi|
|000005d0| 62 6c 65 20 74 6f 20 73 | 65 6c 65 63 74 69 76 65 |ble to s|elective|
|000005e0| 6c 79 20 65 6e 74 65 72 | 20 70 61 73 73 77 6f 72 |ly enter| passwor|
|000005f0| 64 73 20 77 69 74 68 6f | 75 74 20 65 63 68 6f 69 |ds witho|ut echoi|
|00000600| 6e 67 20 74 68 65 6d 20 | 69 6e 0a 74 68 65 20 6d |ng them |in.the m|
|00000610| 69 6e 69 62 75 66 66 65 | 72 20 75 73 69 6e 67 20 |inibuffe|r using |
|00000620| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 60 72 6c 6f |the comm|and `rlo|
|00000630| 67 69 6e 2d 70 61 73 73 | 77 6f 72 64 27 20 65 78 |gin-pass|word' ex|
|00000640| 70 6c 69 63 69 74 6c 79 | 2e 22 29 0a 28 62 79 74 |plicitly|.").(byt|
|00000650| 65 2d 63 6f 64 65 20 22 | c0 c1 21 84 08 00 c2 11 |e-code "|..!.....|
|00000660| 09 84 2e 00 c3 0c 42 11 | c5 09 c6 c7 23 88 c5 09 |......B.|....#...|
|00000670| c8 c9 23 88 c5 09 ca cb | 23 88 c5 09 cc cd 23 88 |..#.....|#.....#.|
|00000680| c5 09 ce cf 23 88 c2 87 | 22 20 5b 62 6f 75 6e 64 |....#...|" [bound|
|00000690| 70 20 72 6c 6f 67 69 6e | 2d 6d 6f 64 65 2d 6d 61 |p rlogin|-mode-ma|
|000006a0| 70 20 6e 69 6c 20 6b 65 | 79 6d 61 70 20 73 68 65 |p nil ke|ymap she|
|000006b0| 6c 6c 2d 6d 6f 64 65 2d | 6d 61 70 20 64 65 66 69 |ll-mode-|map defi|
|000006c0| 6e 65 2d 6b 65 79 20 22 | 03 03 22 20 72 6c 6f 67 |ne-key "|.." rlog|
|000006d0| 69 6e 2d 73 65 6e 64 2d | 43 74 72 6c 2d 43 20 22 |in-send-|Ctrl-C "|
|000006e0| 03 04 22 20 72 6c 6f 67 | 69 6e 2d 73 65 6e 64 2d |.." rlog|in-send-|
|000006f0| 43 74 72 6c 2d 44 20 22 | 03 1a 22 20 72 6c 6f 67 |Ctrl-D "|.." rlog|
|00000700| 69 6e 2d 73 65 6e 64 2d | 43 74 72 6c 2d 5a 20 22 |in-send-|Ctrl-Z "|
|00000710| 03 1c 22 20 72 6c 6f 67 | 69 6e 2d 73 65 6e 64 2d |.." rlog|in-send-|
|00000720| 43 74 72 6c 2d 62 61 63 | 6b 73 6c 61 73 68 20 22 |Ctrl-bac|kslash "|
|00000730| 04 22 20 72 6c 6f 67 69 | 6e 2d 64 65 6c 63 68 61 |." rlogi|n-delcha|
|00000740| 72 2d 6f 72 2d 73 65 6e | 64 2d 43 74 72 6c 2d 44 |r-or-sen|d-Ctrl-D|
|00000750| 5d 20 34 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |] 4).(de|falias '|
|00000760| 72 6c 6f 67 69 6e 20 23 | 5b 28 69 6e 70 75 74 2d |rlogin #|[(input-|
|00000770| 61 72 67 73 20 26 6f 70 | 74 69 6f 6e 61 6c 20 70 |args &op|tional p|
|00000780| 72 65 66 69 78 29 20 22 | 08 19 c2 c3 0c 5c 22 1d |refix) "|.....\".|
|00000790| c6 1e 07 c6 1e 08 c9 20 | 1e 5c 6e cb cc 0c 5c 22 |....... |.\n...\"|
|000007a0| 83 2c 00 0c cd 94 cd 95 | 4f 0e 07 42 16 07 0c ce |.,......|O..B....|
|000007b0| 89 94 4f 14 82 11 00 cf | 0e 5c 6e 21 88 c2 c3 0e |..O.....|.\n!....|
|000007c0| 07 40 5c 22 15 d0 0e 07 | 0e 11 5c 22 16 07 0e 12 |.@\"....|..\"....|
|000007d0| 83 4b 00 c5 d3 0d 21 21 | 15 d4 0d 21 88 d5 0d 21 |.K....!!|...!...!|
|000007e0| 86 8d 00 d6 20 88 d7 70 | 0d 0e 18 c6 0e 07 25 88 |.... ..p|......%.|
|000007f0| d9 0d 21 16 08 da 0e 08 | 21 64 c6 93 88 db 20 88 |..!.....|!d.... .|
|00000800| dc 0e 08 dd 5c 22 88 de | 0e 07 40 df 51 16 20 0e |....\"..|..@.Q. .|
|00000810| 21 85 8d 00 e2 de 0e 07 | 40 e3 51 21 2d 87 22 20 |!.......|@.Q!-." |
|00000820| 5b 72 6c 6f 67 69 6e 2d | 70 72 6f 63 65 73 73 2d |[rlogin-|process-|
|00000830| 63 6f 6e 6e 65 63 74 69 | 6f 6e 2d 74 79 70 65 20 |connecti|on-type |
|00000840| 70 72 6f 63 65 73 73 2d | 63 6f 6e 6e 65 63 74 69 |process-|connecti|
|00000850| 6f 6e 2d 74 79 70 65 20 | 66 6f 72 6d 61 74 20 22 |on-type |format "|
|00000860| 2a 72 6c 6f 67 69 6e 2d | 25 73 2a 22 20 69 6e 70 |*rlogin-|%s*" inp|
|00000870| 75 74 2d 61 72 67 73 20 | 62 75 66 66 65 72 2d 6e |ut-args |buffer-n|
|00000880| 61 6d 65 20 6e 69 6c 20 | 61 72 67 73 20 70 72 6f |ame nil |args pro|
|00000890| 63 20 6d 61 74 63 68 2d | 64 61 74 61 20 6f 6c 64 |c match-|data old|
|000008a0| 2d 6d 61 74 63 68 2d 64 | 61 74 61 20 73 74 72 69 |-match-d|ata stri|
|000008b0| 6e 67 2d 6d 61 74 63 68 | 20 22 5b 20 09 5d 2a 5c |ng-match| "[ .]*\|
|000008c0| 5c 28 5b 5e 20 09 5d 2b | 5c 5c 29 24 22 20 31 20 |\([^ .]+|\\)$" 1 |
|000008d0| 30 20 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |0 store-|match-da|
|000008e0| 74 61 20 61 70 70 65 6e | 64 20 72 6c 6f 67 69 6e |ta appen|d rlogin|
|000008f0| 2d 65 78 70 6c 69 63 69 | 74 2d 61 72 67 73 20 70 |-explici|t-args p|
|00000900| 72 65 66 69 78 20 67 65 | 6e 65 72 61 74 65 2d 6e |refix ge|nerate-n|
|00000910| 65 77 2d 62 75 66 66 65 | 72 20 73 77 69 74 63 68 |ew-buffe|r switch|
|00000920| 2d 74 6f 2d 62 75 66 66 | 65 72 20 63 6f 6d 69 6e |-to-buff|er comin|
|00000930| 74 2d 63 68 65 63 6b 2d | 70 72 6f 63 20 63 6f 6d |t-check-|proc com|
|00000940| 69 6e 74 2d 6d 6f 64 65 | 20 63 6f 6d 69 6e 74 2d |int-mode| comint-|
|00000950| 65 78 65 63 20 72 6c 6f | 67 69 6e 2d 70 72 6f 67 |exec rlo|gin-prog|
|00000960| 72 61 6d 20 67 65 74 2d | 70 72 6f 63 65 73 73 20 |ram get-|process |
|00000970| 70 72 6f 63 65 73 73 2d | 6d 61 72 6b 20 72 6c 6f |process-|mark rlo|
|00000980| 67 69 6e 2d 6d 6f 64 65 | 20 73 65 74 2d 70 72 6f |gin-mode| set-pro|
|00000990| 63 65 73 73 2d 66 69 6c | 74 65 72 20 72 6c 6f 67 |cess-fil|ter rlog|
|000009a0| 69 6e 2d 66 69 6c 74 65 | 72 20 22 2f 22 20 22 3a |in-filte|r "/" ":|
|000009b0| 22 20 63 6f 6d 69 6e 74 | 2d 66 69 6c 65 2d 6e 61 |" comint|-file-na|
|000009c0| 6d 65 2d 70 72 65 66 69 | 78 20 72 6c 6f 67 69 6e |me-prefi|x rlogin|
|000009d0| 2d 69 6e 69 74 69 61 6c | 6c 79 2d 74 72 61 63 6b |-initial|ly-track|
|000009e0| 2d 63 77 64 20 63 64 2d | 61 62 73 6f 6c 75 74 65 |-cwd cd-|absolute|
|000009f0| 20 22 3a 7e 2f 22 5d 20 | 36 20 22 5c 0a 4f 70 65 | ":~/"] |6 "\.Ope|
|00000a00| 6e 20 61 20 6e 65 74 77 | 6f 72 6b 20 6c 6f 67 69 |n a netw|ork logi|
|00000a10| 6e 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |n connec|tion to |
|00000a20| 48 4f 53 54 20 76 69 61 | 20 74 68 65 20 60 72 6c |HOST via| the `rl|
|00000a30| 6f 67 69 6e 27 20 70 72 | 6f 67 72 61 6d 2e 0a 49 |ogin' pr|ogram..I|
|00000a40| 6e 70 75 74 20 69 73 20 | 73 65 6e 74 20 6c 69 6e |nput is |sent lin|
|00000a50| 65 2d 61 74 2d 61 2d 74 | 69 6d 65 20 74 6f 20 74 |e-at-a-t|ime to t|
|00000a60| 68 65 20 72 65 6d 6f 74 | 65 20 63 6f 6e 6e 65 63 |he remot|e connec|
|00000a70| 74 69 6f 6e 2e 0a 0a 43 | 6f 6d 6d 75 6e 69 63 61 |tion...C|ommunica|
|00000a80| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 72 65 |tion wit|h the re|
|00000a90| 6d 6f 74 65 20 68 6f 73 | 74 20 69 73 20 72 65 63 |mote hos|t is rec|
|00000aa0| 6f 72 64 65 64 20 69 6e | 20 61 20 62 75 66 66 65 |orded in| a buffe|
|00000ab0| 72 20 2a 72 6c 6f 67 69 | 6e 2d 48 4f 53 54 2a 2c |r *rlogi|n-HOST*,|
|00000ac0| 0a 77 68 65 72 65 20 48 | 4f 53 54 20 69 73 20 74 |.where H|OST is t|
|00000ad0| 68 65 20 66 69 72 73 74 | 20 77 6f 72 64 20 69 6e |he first| word in|
|00000ae0| 20 74 68 65 20 73 74 72 | 69 6e 67 20 41 52 47 53 | the str|ing ARGS|
|00000af0| 2e 20 20 49 66 20 61 20 | 70 72 65 66 69 78 20 61 |. If a |prefix a|
|00000b00| 72 67 75 6d 65 6e 74 20 | 69 73 0a 67 69 76 65 6e |rgument |is.given|
|00000b10| 20 61 6e 64 20 74 68 65 | 20 62 75 66 66 65 72 20 | and the| buffer |
|00000b20| 2a 72 6c 6f 67 69 6e 2d | 48 4f 53 54 2a 20 61 6c |*rlogin-|HOST* al|
|00000b30| 72 65 61 64 79 20 65 78 | 69 73 74 73 2c 20 61 20 |ready ex|ists, a |
|00000b40| 6e 65 77 20 62 75 66 66 | 65 72 20 77 69 74 68 20 |new buff|er with |
|00000b50| 61 0a 64 69 66 66 65 72 | 65 6e 74 20 63 6f 6e 6e |a.differ|ent conn|
|00000b60| 65 63 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 6d |ection w|ill be m|
|00000b70| 61 64 65 2e 0a 0a 54 68 | 65 20 76 61 72 69 61 62 |ade...Th|e variab|
|00000b80| 6c 65 20 60 72 6c 6f 67 | 69 6e 2d 70 72 6f 67 72 |le `rlog|in-progr|
|00000b90| 61 6d 27 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |am' cont|ains the|
|00000ba0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 61 63 74 | name of| the act|
|00000bb0| 75 61 6c 20 70 72 6f 67 | 72 61 6d 20 74 6f 0a 72 |ual prog|ram to.r|
|00000bc0| 75 6e 2e 20 20 49 74 20 | 63 61 6e 20 62 65 20 61 |un. It |can be a|
|00000bd0| 20 72 65 6c 61 74 69 76 | 65 20 6f 72 20 61 62 73 | relativ|e or abs|
|00000be0| 6f 6c 75 74 65 20 70 61 | 74 68 2e 20 0a 0a 54 68 |olute pa|th. ..Th|
|00000bf0| 65 20 76 61 72 69 61 62 | 6c 65 20 60 72 6c 6f 67 |e variab|le `rlog|
|00000c00| 69 6e 2d 65 78 70 6c 69 | 63 69 74 2d 61 72 67 73 |in-expli|cit-args|
|00000c10| 27 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 61 |' is a l|ist of a|
|00000c20| 72 67 75 6d 65 6e 74 73 | 20 74 6f 20 67 69 76 65 |rguments| to give|
|00000c30| 20 74 6f 0a 74 68 65 20 | 72 6c 6f 67 69 6e 20 77 | to.the |rlogin w|
|00000c40| 68 65 6e 20 73 74 61 72 | 74 69 6e 67 2e 20 20 54 |hen star|ting. T|
|00000c50| 68 65 79 20 61 72 65 20 | 61 64 64 65 64 20 61 66 |hey are |added af|
|00000c60| 74 65 72 20 61 6e 79 20 | 61 72 67 75 6d 65 6e 74 |ter any |argument|
|00000c70| 73 20 67 69 76 65 6e 20 | 69 6e 20 41 52 47 53 2e |s given |in ARGS.|
|00000c80| 22 20 28 6c 69 73 74 20 | 28 72 65 61 64 2d 66 72 |" (list |(read-fr|
|00000c90| 6f 6d 2d 6d 69 6e 69 62 | 75 66 66 65 72 20 22 72 |om-minib|uffer "r|
|00000ca0| 6c 6f 67 69 6e 20 61 72 | 67 75 6d 65 6e 74 73 20 |login ar|guments |
|00000cb0| 28 68 6f 73 74 6e 61 6d | 65 20 66 69 72 73 74 29 |(hostnam|e first)|
|00000cc0| 3a 20 22 29 20 63 75 72 | 72 65 6e 74 2d 70 72 65 |: ") cur|rent-pre|
|00000cd0| 66 69 78 2d 61 72 67 29 | 5d 29 0a 28 64 65 66 61 |fix-arg)|]).(defa|
|00000ce0| 6c 69 61 73 20 27 72 6c | 6f 67 69 6e 2d 70 61 73 |lias 'rl|ogin-pas|
|00000cf0| 73 77 6f 72 64 20 23 5b | 28 26 6f 70 74 69 6f 6e |sword #[|(&option|
|00000d00| 61 6c 20 70 72 6f 63 29 | 20 22 08 84 08 00 c1 70 |al proc)| ".....p|
|00000d10| 21 10 c2 c3 08 21 21 1a | c4 c5 c6 5c 6e 5c 22 c7 |!....!!.|...\n\".|
|00000d20| 5c 22 89 1e 08 85 2c 00 | 8a 5c 6e 71 88 c9 ca 21 |\"....,.|.\nq...!|
|00000d30| 88 cb 08 c5 cc 0e 08 5c | 22 5c 22 29 2a 87 22 20 |.......\|"\")*." |
|00000d40| 5b 70 72 6f 63 20 67 65 | 74 2d 62 75 66 66 65 72 |[proc ge|t-buffer|
|00000d50| 2d 70 72 6f 63 65 73 73 | 20 62 75 66 66 65 72 2d |-process| buffer-|
|00000d60| 6e 61 6d 65 20 70 72 6f | 63 65 73 73 2d 62 75 66 |name pro|cess-buf|
|00000d70| 66 65 72 20 63 6f 6d 69 | 6e 74 2d 72 65 61 64 2d |fer comi|nt-read-|
|00000d80| 6e 6f 65 63 68 6f 20 66 | 6f 72 6d 61 74 20 22 50 |noecho f|ormat "P|
|00000d90| 61 73 73 77 6f 72 64 20 | 66 6f 72 20 62 75 66 66 |assword |for buff|
|00000da0| 65 72 20 5c 22 25 73 5c | 22 3a 20 22 20 73 74 61 |er \"%s\|": " sta|
|00000db0| 72 73 20 70 61 73 73 20 | 69 6e 73 65 72 74 2d 62 |rs pass |insert-b|
|00000dc0| 65 66 6f 72 65 2d 6d 61 | 72 6b 65 72 73 20 22 5c |efore-ma|rkers "\|
|00000dd0| 6e 22 20 63 6f 6d 69 6e | 74 2d 73 65 6e 64 2d 73 |n" comin|t-send-s|
|00000de0| 74 72 69 6e 67 20 22 25 | 73 5c 6e 22 5d 20 36 20 |tring "%|s\n"] 6 |
|00000df0| 22 5c 0a 52 65 61 64 20 | 61 20 70 61 73 73 77 6f |"\.Read |a passwo|
|00000e00| 72 64 20 61 6e 64 20 73 | 65 6e 64 20 69 74 20 74 |rd and s|end it t|
|00000e10| 6f 20 61 6e 20 72 6c 6f | 67 69 6e 20 73 65 73 73 |o an rlo|gin sess|
|00000e20| 69 6f 6e 2e 0a 46 6f 72 | 20 65 61 63 68 20 63 68 |ion..For| each ch|
|00000e30| 61 72 61 63 74 65 72 20 | 74 79 70 65 64 2c 20 61 |aracter |typed, a|
|00000e40| 20 60 2a 27 20 69 73 20 | 65 63 68 6f 65 64 20 69 | `*' is |echoed i|
|00000e50| 6e 20 74 68 65 20 6d 69 | 6e 69 62 75 66 66 65 72 |n the mi|nibuffer|
|00000e60| 2e 0a 45 6e 64 20 77 69 | 74 68 20 52 45 54 2c 20 |..End wi|th RET, |
|00000e70| 4c 46 44 2c 20 6f 72 20 | 45 53 43 2e 20 20 44 45 |LFD, or |ESC. DE|
|00000e80| 4c 20 6f 72 20 43 2d 68 | 20 72 75 62 73 20 6f 75 |L or C-h| rubs ou|
|00000e90| 74 2e 20 20 43 2d 75 20 | 6b 69 6c 6c 73 20 6c 69 |t. C-u |kills li|
|00000ea0| 6e 65 2e 0a 43 2d 67 20 | 61 62 6f 72 74 73 20 61 |ne..C-g |aborts a|
|00000eb0| 74 74 65 6d 70 74 20 74 | 6f 20 72 65 61 64 20 61 |ttempt t|o read a|
|00000ec0| 6e 64 20 73 65 6e 64 20 | 70 61 73 73 77 6f 72 64 |nd send |password|
|00000ed0| 2e 20 0a 0a 4f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |. ..Opti|onal arg|
|00000ee0| 75 6d 65 6e 74 20 50 52 | 4f 43 20 69 73 20 74 68 |ument PR|OC is th|
|00000ef0| 65 20 70 72 6f 63 65 73 | 73 20 74 6f 20 77 68 69 |e proces|s to whi|
|00000f00| 63 68 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |ch the p|assword |
|00000f10| 73 68 6f 75 6c 64 20 62 | 65 20 73 65 6e 74 2e 0a |should b|e sent..|
|00000f20| 49 66 20 6e 6f 74 20 70 | 72 6f 76 69 64 65 64 2c |If not p|rovided,|
|00000f30| 20 73 65 6e 64 20 74 6f | 20 74 68 65 20 70 72 6f | send to| the pro|
|00000f40| 63 65 73 73 20 69 6e 20 | 74 68 65 20 63 75 72 72 |cess in |the curr|
|00000f50| 65 6e 74 20 62 75 66 66 | 65 72 2e 20 20 54 68 69 |ent buff|er. Thi|
|00000f60| 73 20 61 72 67 75 6d 65 | 6e 74 0a 69 73 20 69 6e |s argume|nt.is in|
|00000f70| 74 65 6e 64 65 64 20 70 | 72 69 6d 61 72 69 6c 79 |tended p|rimarily|
|00000f80| 20 66 6f 72 20 75 73 65 | 20 62 79 20 60 72 6c 6f | for use| by `rlo|
|00000f90| 67 69 6e 2d 66 69 6c 74 | 65 72 27 2e 22 20 6e 69 |gin-filt|er'." ni|
|00000fa0| 6c 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 |l]).(def|alias 'r|
|00000fb0| 6c 6f 67 69 6e 2d 6d 6f | 64 65 20 23 5b 6e 69 6c |login-mo|de #[nil|
|00000fc0| 20 22 c0 20 88 c1 20 88 | c2 13 c4 15 c6 0e 07 21 | ". .. .|.......!|
|00000fd0| 88 0e 08 16 09 ca cb 21 | 88 cc cd 21 87 22 20 5b |.......!|...!." [|
|00000fe0| 6b 69 6c 6c 2d 61 6c 6c | 2d 6c 6f 63 61 6c 2d 76 |kill-all|-local-v|
|00000ff0| 61 72 69 61 62 6c 65 73 | 20 73 68 65 6c 6c 2d 6d |ariables| shell-m|
|00001000| 6f 64 65 20 72 6c 6f 67 | 69 6e 2d 6d 6f 64 65 20 |ode rlog|in-mode |
|00001010| 6d 61 6a 6f 72 2d 6d 6f | 64 65 20 22 72 6c 6f 67 |major-mo|de "rlog|
|00001020| 69 6e 22 20 6d 6f 64 65 | 2d 6e 61 6d 65 20 75 73 |in" mode|-name us|
|00001030| 65 2d 6c 6f 63 61 6c 2d | 6d 61 70 20 72 6c 6f 67 |e-local-|map rlog|
|00001040| 69 6e 2d 6d 6f 64 65 2d | 6d 61 70 20 72 6c 6f 67 |in-mode-|map rlog|
|00001050| 69 6e 2d 69 6e 69 74 69 | 61 6c 6c 79 2d 74 72 61 |in-initi|ally-tra|
|00001060| 63 6b 2d 63 77 64 20 73 | 68 65 6c 6c 2d 64 69 72 |ck-cwd s|hell-dir|
|00001070| 74 72 61 63 6b 70 20 6d | 61 6b 65 2d 6c 6f 63 61 |trackp m|ake-loca|
|00001080| 6c 2d 76 61 72 69 61 62 | 6c 65 20 63 6f 6d 69 6e |l-variab|le comin|
|00001090| 74 2d 66 69 6c 65 2d 6e | 61 6d 65 2d 70 72 65 66 |t-file-n|ame-pref|
|000010a0| 69 78 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 72 6c 6f |ix run-h|ooks rlo|
|000010b0| 67 69 6e 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 5d 20 32 |gin-mode|-hook] 2|
|000010c0| 20 22 5c 0a 53 65 74 20 | 6d 61 6a 6f 72 2d 6d 6f | "\.Set |major-mo|
|000010d0| 64 65 20 66 6f 72 20 72 | 6c 6f 67 69 6e 20 73 65 |de for r|login se|
|000010e0| 73 73 69 6f 6e 73 2e 20 | 0a 49 66 20 60 72 6c 6f |ssions. |.If `rlo|
|000010f0| 67 69 6e 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 27 20 69 |gin-mode|-hook' i|
|00001100| 73 20 73 65 74 2c 20 72 | 75 6e 20 69 74 2e 22 20 |s set, r|un it." |
|00001110| 6e 69 6c 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |nil]).(b|yte-code|
|00001120| 20 22 c0 c1 c2 5c 22 88 | c0 c3 c4 5c 22 88 c0 c5 | "...\".|...\"...|
|00001130| c6 5c 22 88 c0 c7 c8 5c | 22 88 c0 c9 ca 5c 22 87 |.\"....\|"....\".|
|00001140| 22 20 5b 64 65 66 61 6c | 69 61 73 20 72 6c 6f 67 |" [defal|ias rlog|
|00001150| 69 6e 2d 66 69 6c 74 65 | 72 20 23 5b 28 70 72 6f |in-filte|r #[(pro|
|00001160| 63 20 73 74 72 69 6e 67 | 29 20 22 c0 89 89 19 1a |c string|) ".....|
|00001170| 1b 8a c4 0d 21 71 88 c6 | 0d 21 13 c7 0b 21 12 0b |....!q..|.!...!..|
|00001180| c8 20 55 85 1e 00 c9 70 | 21 11 0b 62 88 ca 0e 0b |. U....p|!..b....|
|00001190| 21 88 5c 6e 62 88 cc cd | 0b ce 23 83 39 00 cf d0 |!.\nb...|..#.9...|
|000011a0| 21 88 82 2a 00 29 09 83 | 4c 00 c8 09 21 5c 6e 59 |!..*.)..|L...!\nY|
|000011b0| 83 4c 00 d1 09 5c 6e d2 | 23 88 2b 0e 13 85 5c 5c |.L...\n.|#.+...\\|
|000011c0| 00 0e 0b d4 98 85 5c 5c | 00 d5 0d 21 87 22 20 5b |......\\|...!." [|
|000011d0| 6e 69 6c 20 77 69 6e 64 | 6f 77 20 72 65 67 69 6f |nil wind|ow regio|
|000011e0| 6e 2d 62 65 67 69 6e 20 | 70 72 6f 63 2d 6d 61 72 |n-begin |proc-mar|
|000011f0| 6b 20 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |k proces|s-buffer|
|00001200| 20 70 72 6f 63 20 70 72 | 6f 63 65 73 73 2d 6d 61 | proc pr|ocess-ma|
|00001210| 72 6b 20 6d 61 72 6b 65 | 72 2d 70 6f 73 69 74 69 |rk marke|r-positi|
|00001220| 6f 6e 20 77 69 6e 64 6f | 77 2d 73 74 61 72 74 20 |on windo|w-start |
|00001230| 67 65 74 2d 62 75 66 66 | 65 72 2d 77 69 6e 64 6f |get-buff|er-windo|
|00001240| 77 20 69 6e 73 65 72 74 | 2d 62 65 66 6f 72 65 2d |w insert|-before-|
|00001250| 6d 61 72 6b 65 72 73 20 | 73 74 72 69 6e 67 20 73 |markers |string s|
|00001260| 65 61 72 63 68 2d 66 6f | 72 77 61 72 64 20 22 0d |earch-fo|rward ".|
|00001270| 22 20 67 6f 74 6f 2d 65 | 6e 64 20 64 65 6c 65 74 |" goto-e|nd delet|
|00001280| 65 2d 63 68 61 72 20 2d | 31 20 73 65 74 2d 77 69 |e-char -|1 set-wi|
|00001290| 6e 64 6f 77 2d 73 74 61 | 72 74 20 6e 6f 66 6f 72 |ndow-sta|rt nofor|
|000012a0| 63 65 20 72 6c 6f 67 69 | 6e 2d 70 61 73 73 77 6f |ce rlogi|n-passwo|
|000012b0| 72 64 2d 70 61 72 61 6e | 6f 69 61 20 22 50 61 73 |rd-paran|oia "Pas|
|000012c0| 73 77 6f 72 64 3a 22 20 | 72 6c 6f 67 69 6e 2d 70 |sword:" |rlogin-p|
|000012d0| 61 73 73 77 6f 72 64 5d | 20 34 5d 20 72 6c 6f 67 |assword]| 4] rlog|
|000012e0| 69 6e 2d 73 65 6e 64 2d | 43 74 72 6c 2d 43 20 23 |in-send-|Ctrl-C #|
|000012f0| 5b 6e 69 6c 20 22 c0 c1 | c2 5c 22 87 22 20 5b 73 |[nil "..|.\"." [s|
|00001300| 65 6e 64 2d 73 74 72 69 | 6e 67 20 6e 69 6c 20 22 |end-stri|ng nil "|
|00001310| 03 22 5d 20 33 20 6e 69 | 6c 20 6e 69 6c 5d 20 72 |."] 3 ni|l nil] r|
|00001320| 6c 6f 67 69 6e 2d 73 65 | 6e 64 2d 43 74 72 6c 2d |login-se|nd-Ctrl-|
|00001330| 44 20 23 5b 6e 69 6c 20 | 22 c0 c1 c2 5c 22 87 22 |D #[nil |"...\"."|
|00001340| 20 5b 73 65 6e 64 2d 73 | 74 72 69 6e 67 20 6e 69 | [send-s|tring ni|
|00001350| 6c 20 22 04 22 5d 20 33 | 20 6e 69 6c 20 6e 69 6c |l "."] 3| nil nil|
|00001360| 5d 20 72 6c 6f 67 69 6e | 2d 73 65 6e 64 2d 43 74 |] rlogin|-send-Ct|
|00001370| 72 6c 2d 5a 20 23 5b 6e | 69 6c 20 22 c0 c1 c2 5c |rl-Z #[n|il "...\|
|00001380| 22 87 22 20 5b 73 65 6e | 64 2d 73 74 72 69 6e 67 |"." [sen|d-string|
|00001390| 20 6e 69 6c 20 22 1a 22 | 5d 20 33 20 6e 69 6c 20 | nil "."|] 3 nil |
|000013a0| 6e 69 6c 5d 20 72 6c 6f | 67 69 6e 2d 73 65 6e 64 |nil] rlo|gin-send|
|000013b0| 2d 43 74 72 6c 2d 62 61 | 63 6b 73 6c 61 73 68 20 |-Ctrl-ba|ckslash |
|000013c0| 23 5b 6e 69 6c 20 22 c0 | c1 c2 5c 22 87 22 20 5b |#[nil ".|..\"." [|
|000013d0| 73 65 6e 64 2d 73 74 72 | 69 6e 67 20 6e 69 6c 20 |send-str|ing nil |
|000013e0| 22 1c 22 5d 20 33 20 6e | 69 6c 20 6e 69 6c 5d 5d |"."] 3 n|il nil]]|
|000013f0| 20 33 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 | 3).(def|alias 'r|
|00001400| 6c 6f 67 69 6e 2d 64 65 | 6c 63 68 61 72 2d 6f 72 |login-de|lchar-or|
|00001410| 2d 73 65 6e 64 2d 43 74 | 72 6c 2d 44 20 23 5b 28 |-send-Ct|rl-D #[(|
|00001420| 61 72 67 29 20 22 6d 83 | 07 00 c0 20 87 c1 5c 6e |arg) "m.|... ..\n|
|00001430| 21 87 22 20 5b 72 6c 6f | 67 69 6e 2d 73 65 6e 64 |!." [rlo|gin-send|
|00001440| 2d 43 74 72 6c 2d 44 20 | 64 65 6c 65 74 65 2d 63 |-Ctrl-D |delete-c|
|00001450| 68 61 72 20 61 72 67 5d | 20 32 20 22 5c 0a 44 65 |har arg]| 2 "\.De|
|00001460| 6c 65 74 65 20 41 52 47 | 20 63 68 61 72 61 63 74 |lete ARG| charact|
|00001470| 65 72 73 20 66 6f 72 77 | 61 72 64 2c 20 6f 72 20 |ers forw|ard, or |
|00001480| 73 65 6e 64 20 61 20 43 | 2d 64 20 74 6f 20 70 72 |send a C|-d to pr|
|00001490| 6f 63 65 73 73 20 69 66 | 20 61 74 20 65 6e 64 20 |ocess if| at end |
|000014a0| 6f 66 20 62 75 66 66 65 | 72 2e 22 20 22 70 22 5d |of buffe|r." "p"]|
|000014b0| 29 0a | |). | |
+--------+-------------------------+-------------------------+--------+--------+